import { HOME, HOME_RETURN } from '../actions/main'

const initialState = {
    homeData: {},
};

export default function home(state = initialState, action) {
    switch (action.type) {
        case HOME:
            return {
                ...state
            };
        case HOME_RETURN:
            return {
                ...state,
                homeData: action.payload
            };
        default:
            return state;
    }
}
